//    Copyright (C) Kherty.  All rights reserved.
using System.Windows.Media.Media3D;

namespace OpenLS.Chart.UI
{
    class PyramidToMaxGeometryFactory: PyramidBaseGeometryFactory
    {
        public PyramidToMaxGeometryFactory(BarDirection direction): base(direction)
        {
            
        }
        protected override Point3D TransformPoint(Point3D point)
        {
            Bounds categoryBounds = GetCategoryBounds(bounds);
            double category = GetPoint(GetCategory(point), categoryBounds.Mid, GetValue(point), totalValueBounds.Low, totalValueBounds.High);
            double z = GetPoint(point.Z, bounds.Z.Mid, GetValue(point), totalValueBounds.Low, totalValueBounds.High);
            Point3D result = CreatePoint(GetValue(point), category,z);
            return result;
        }
    }
}
